/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const classRouter = {
  path: '/class',
  component: Layout,
  redirect: '/class/list',
  alwaysShow: true,
  name: 'class',
  meta: {
    title: '班级管理',
    icon: 'tree',
    roles: ['admin', 'org', 'school', 'teacher']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/class/list'),
      name: 'classList',
      meta: { title: '班级列表', icon: 'list' }
    },
    {
      path: 'create',
      component: () => import('@/views/class/create'),
      name: 'classCreate',
      meta: { title: '创建班级', icon: 'create' }
    }
  ]
}

export default classRouter
